package com.moon.interface_api.enums;

/**
 *Created by chengliang on 2018/8/24.
 */
public enum ResultEnum {
    SUCCESS("0000", "操作成功!"),
    ERROR("1111","操作失败"),
    
    CODE_ERROR("5001","验证码错误"),
    TOKEN_INVALID("5002", "本次登录已失效，请重新登录"),
    USER_DATE_NONE("5003","资料填写不完整"),

    IP_LIMIT("-101001", "该IP被限制"),
    USER_LIMIT("-101003", "该用户被禁止使用任何功能"),
    LOGIN_FAIL("-101005", "登录信息插入失败"),
    LOGOUT_FAIL("-101006", "退出登录失败"),

    ERROR_ARGUMENT("-101007", "参数错误"),
    ACCESS_TIMEOUT("-101008", "访问超时"),
    PARAMETER_TAMPERED("-101010", "参数被篡改"),
    NONE_SIGN("-101011", "没有sign参数，无法进行签名验证"),

    VISIT_TOO_OFTEN("-101015", "访问过于频繁，请稍后再试"),
    LOGIN_SUCCESS("100040", "登录成功"),
    NOT_LOGGED_IN("-100040", "未登录，请先登录"),
    REGISTER_SUCCESS("100041", "注册成功"),
    REGISTER_FAIL("-100056","注册失败，请稍后再试"),
    USER_NOT_EXSITS("-101044","该手机号未注册"),
    USER_EXSITS("-101045","该手机号已注册"),

    USER_PASS_ERROR("-101046", "用户名或密码错误"),
    USER_NOT_NULL("-101047", "账号已存在"),
    USER_IS_NULL("-101048","用户不存在"),
    USERNO_IS_NULL("-101049","用户编号不能为空"),
    USERPHONE_IS_NULL("-101050","用户手机号码不能为空"),
    SETING_ERROR("-101051","设置失败,请重试"),
    VERIFY_FAIL("-101055","已超时长，请重新操作"),


    USER_PASSWORD_ERROR("-101052","密码错误%s次，再错%s次账户将锁定30分钟"),
    USER_PASSWORD_ERROR2("-101053","密码已输错6次，账户锁定30分钟"),
    LOGIN_VERIFY_SMS("100001","密码验证成功,输入短信验证码登录"),



    USER_PHONE_ERROR("-100049", "请填写正确的手机号码"),
    USER_PHONE_FORMAT_ERROR("-100049", "手机号格式错误"),
    USER_INTRODUCE_ERROR("-100048", "输入的推荐码不存在,请重新输入"),
    USER_PHONE_CODE_TIMEOUT("-100042", "验证码已超时"),
    USER_PHONE_CODE_ERROR("-100050", "验证码不正确"),
    USER_PHONE_MSG_ERROR("-100052", "短信发送过于频繁，请稍后再试"),
    USER_CAPTCHA_SYSTEM("-100053", "验证码生成失败"),
    USER_CAPTCHA_ERROR("-100054", "验证码错误"),
    USER_EXISTE_ERROR("-100057", "验证码不能为空");
    
   


    private final String code;
    private final String msg;

    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
